#!/bin/bash
source $HOME/.bash_profile
SCRIPT_PATH=`dirname $0`
cd $SCRIPT_PATH

echo "[composer] begin update..."

if [ ! -f "composer.json" ]; then
    echo "[composer] failed! absent composer.json."
    exit -1;
fi

/usr/local/php7.4.13/bin/php /usr/local/bin/composer update